Skip to content

获取核身结果

按商户拉起核身时预下单的单号获取该次微工卡核身的结果

请求参数类型描述
authenticate_numberstring商家核身单号
queryobject声明请求的查询参数
sub_mchidstring子商户号
php
$instance->v3->payrollCard->authentications->_authenticate_number_->getAsync([
  'authenticate_number' => 'mcdhehfgisdhfjghed39384564i83',
  'query' => [
    'sub_mchid' => '1111111',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/payroll-card/authentications/{authenticate_number}')->getAsync([
  'authenticate_number' => 'mcdhehfgisdhfjghed39384564i83',
  'query' => [
    'sub_mchid' => '1111111',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/payroll-card/authentications/{authenticate_number}']->getAsync([
  'authenticate_number' => 'mcdhehfgisdhfjghed39384564i83',
  'query' => [
    'sub_mchid' => '1111111',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->payrollCard->authentications->_authenticate_number_->get([
  'authenticate_number' => 'mcdhehfgisdhfjghed39384564i83',
  'query' => [
    'sub_mchid' => '1111111',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/payroll-card/authentications/{authenticate_number}')->get([
  'authenticate_number' => 'mcdhehfgisdhfjghed39384564i83',
  'query' => [
    'sub_mchid' => '1111111',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/payroll-card/authentications/{authenticate_number}']->get([
  'authenticate_number' => 'mcdhehfgisdhfjghed39384564i83',
  'query' => [
    'sub_mchid' => '1111111',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
mchidstring商户号
sub_mchidstring子商户号
openidstring用户标识
authenticate_scenestring核身渠道
authenticate_sourcestring核身渠道标识
project_namestring项目名称
employer_namestring单位名称
authenticate_statestring核身状态
AUTHENTICATE_PROCESSING | AUTHENTICATE_SUCCESS | AUTHENTICATE_FAILED 枚举值之一
authenticate_timestring核身时间
authenticate_numberstring商家核身单号
authenticate_failed_reasonstring核身失败原因

参阅 官方文档

Published on the GitHub by TheNorthMemory